/**
 * Created by shudong.msd(风骐) on 2016/4/17.
 */
'use strict';
app.controller('missionController',['$scope','dataFetcher',function($scope,dataFetcherService){

    $scope.historyMissionNumber = dataFetcherService.historyMissionNumber;

    dataFetcherService.freshHistoryMissionData($scope);


    dataFetcherService.updateStatusOfUnread($scope);

    $scope.$on('delete_mission', function(event, data) {
        dataFetcherService.updateStatusOfUnread($scope);

        //$scope.$broadcast('delete_mission_child', data);

    });


}]);
